﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Register.Model;
using Register.IDAL;
using Register.DALFactory;
namespace Register.BLL
{   
public     class ModuleInfoBLL
    { private  static String typeNameKey = "ModuleInfoDALKey";
    
        public static bool  Add(ModuleInfo model)
        {
            IModuleInfoDAL iModuleInfo = DALFactory<IModuleInfoDAL>.Create(typeNameKey);
            if (iModuleInfo.Add(model) > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public static bool Delete(string ModuleInfo_ID)
        {
            IModuleInfoDAL iModuleInfo = DALFactory<IModuleInfoDAL>.Create(typeNameKey);
            return iModuleInfo.Delete(ModuleInfo_ID);
        }

        public static List<ModuleInfo> GetList(string strWhere)
      {
          IModuleInfoDAL iModuleInfo = DALFactory<IModuleInfoDAL>.Create(typeNameKey);
          return iModuleInfo.GetList(strWhere);
      }


    }
}
